package com.dongdong.bookstore.module.pms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dongdong.bookstore.module.pms.dto.BookDto;
import com.dongdong.bookstore.module.pms.model.Book;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 书籍  服务类
 * </p>
 *
 * @author chiangkai
 * @since 2021-11-07
 */
public interface BookService extends IService<Book> {

    boolean create(BookDto dto);

    boolean delete(Long id);

    boolean updateState(Long id, Integer state);

    boolean update(Long id, BookDto dto);

    Page<Book> list(String keyword, Long cateId, Long subId, String orderBy, Integer isAsc, Integer pageSize, Integer pageNum);
}
